package com.monster.pojo;

import java.util.Date;

/**
 * 评论类，包含对应comment表的各属性和getter、setter方法
 * @author cyb
 */
public class Comment {
    private Long id;//评论ID
    private User user = new User();//评论用户对象
    private String content;//评论内容
    private String date;//评论时间
    private Integer zan;//评论点赞
    private Integer commentType;//评论类型
    private Long typeId;//类型ID
    private Long replyId;//回复的评论id

    public Long getReplyId() {
        return replyId;
    }

    public void setReplyId(Long replyId) {
        this.replyId = replyId;
    }

    public Integer getCommentType() {
        return commentType;
    }

    public void setCommentType(Integer commentType) {
        this.commentType = commentType;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public Integer getZan() {
        return zan;
    }

    public void setZan(Integer zan) {
        this.zan = zan;
    }

    public Comment() {}

    public Comment(Long id, User user, String content, String date, Integer zan, Integer commentType, Long typeId, Long replyId) {
        this.id = id;
        this.user = user;
        this.content = content;
        this.date = date;
        this.zan = zan;
        this.commentType = commentType;
        this.typeId = typeId;
        this.replyId = replyId;
    }
}
